/** 
Copyright (c) 2010, Sheikh Abdul Wahid Ahmed
Details @ http://extremecodeworld.codeplex.com/license
**/

using System;
using System.Data;
using System.Xml;
using System.IO;

namespace EXtremecode.Logging.Configurations
{
	/// <summary>
	/// Summary description for Provider.
	/// </summary>
	public class Provider
	{
		
		internal static string LoggingDirectoryPath
		{
			get
			{
				string strPath=System.Configuration.ConfigurationSettings.AppSettings[Keys.LOGGING_DIR_PATH];
				return strPath;
			}
		}

        internal static int  LoggingMaxFileSize
        {
            get
            {
                int intFileSize = 0;
                string fileSize = System.Configuration.ConfigurationSettings.AppSettings[Keys.LOGGING_MAX_FILE_SIZE_];
                if (!int.TryParse(fileSize, out  intFileSize))
                {
                   //default
                    intFileSize = 5000000;
                }

                return intFileSize;
            }
        }


	}
}
